package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.SrvFeedbformMapper;
import com.ruoyi.order.domain.SrvFeedbform;
import com.ruoyi.order.service.ISrvFeedbformService;

/**
 * 办理单Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-29
 */
@Service
public class SrvFeedbformServiceImpl implements ISrvFeedbformService 
{
    @Autowired
    private SrvFeedbformMapper srvFeedbformMapper;

    /**
     * 查询办理单
     * 
     * @param srvFbcode 办理单ID
     * @return 办理单
     */
    @Override
    public SrvFeedbform selectSrvFeedbformById(String srvFbcode)
    {
        return srvFeedbformMapper.selectSrvFeedbformById(srvFbcode);
    }

    /**
     * 查询办理单列表
     * 
     * @param srvFeedbform 办理单
     * @return 办理单
     */
    @Override
    public List<SrvFeedbform> selectSrvFeedbformList(SrvFeedbform srvFeedbform)
    {
        return srvFeedbformMapper.selectSrvFeedbformList(srvFeedbform);
    }

    /**
     * 新增办理单
     * 
     * @param srvFeedbform 办理单
     * @return 结果
     */
    @Override
    public int insertSrvFeedbform(SrvFeedbform srvFeedbform)
    {
        return srvFeedbformMapper.insertSrvFeedbform(srvFeedbform);
    }

    /**
     * 修改办理单
     * 
     * @param srvFeedbform 办理单
     * @return 结果
     */
    @Override
    public int updateSrvFeedbform(SrvFeedbform srvFeedbform)
    {
        return srvFeedbformMapper.updateSrvFeedbform(srvFeedbform);
    }

    /**
     * 批量删除办理单
     * 
     * @param srvFbcodes 需要删除的办理单ID
     * @return 结果
     */
    @Override
    public int deleteSrvFeedbformByIds(String[] srvFbcodes)
    {
        return srvFeedbformMapper.deleteSrvFeedbformByIds(srvFbcodes);
    }

    /**
     * 删除办理单信息
     * 
     * @param srvFbcode 办理单ID
     * @return 结果
     */
    @Override
    public int deleteSrvFeedbformById(String srvFbcode)
    {
        return srvFeedbformMapper.deleteSrvFeedbformById(srvFbcode);
    }
}
